#!/usr/bin/env python
# _*_ coding: utf-8 _*_
"""
author : GQ
project : ApiTestPlatform
date : 2021/11/17
"""

from config import env


# 获取config文件中ip及port
def get_env_ip(whichHost, port=None):
    host = env['host'][whichHost]
    if port:
        return "{0}:{1}".format(host, port)
    else:
        return host
